<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
body {
	font-family: 돋움;
	font-size: 9pt
}

td {
	font-family: 돋움;
	font-size: 9pt
}
</style>
<script type="text/javascript">
	function updateboard() {
		var frm1 = document.form1;
		var d1 = frm1.d1.value;
		alert("ggg");
	}
</script>

<title>Insert title here</title>
</head>
<body>
	<form name="form1" method="post">
		<center>
			<h1>자유 게시판</h1>
		</center>
		<table border=1 width=700 height=20 align=center>
			<tr>
				<td width=50 align=center>번호</td>
				<td width=430 align=center>제목</td>
				<td width=120 align=center>작성자</td>
				<td width=140 align=center>작성일</td>
				<td width=60 align=center>조회수</td>
			</tr>
			<tr>
				<c:if test="${fn:length(requestScope.board) > 0}">
					<c:forEach var="i" items="${requestScope.board}">
						<td align="center"><c:out value="${i.serial}" /> </td>
						<td align="center"><a href=""><c:out value="${i.subject}" /> </a> </td>
						<td align="center"><c:out value="${i.writer}" /> </td>
						<td align="center"><c:out value="${i.writtenDate}" /> </td>
						
					</c:forEach>
				</c:if>
			</tr>
			<tr>
				<input type="button" value="등록" name="d1"
					style="color: white; FONT-SIZE: 12pt; height: 25px; BACKGROUND-COLOR: blue; size: 30; margin-left: 700px"
					onclick="updateboard()">
			</tr>
		</table>
	</form>
</body>
</html>